package com.bnlr.lrparking.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.bnlr.lrparking.R;
import com.bnlr.lrparking.model.RecommendParkBean;

import java.util.List;


/**
 * Created by rr on 2016/7/2.
 * 推荐停车场列表
 */
public class RecommendParkAdapter extends BaseQuickAdapter<RecommendParkBean.DataBean,BaseViewHolder> {

    public RecommendParkAdapter(List<RecommendParkBean.DataBean> data) {
        super(R.layout.item_recommendpark,data);
    }

    @Override
    protected void convert(BaseViewHolder holder, RecommendParkBean.DataBean item) {
        holder.setIsRecyclable(false);
        holder.setText(R.id.tv_parkname,item.getName());
        holder.setText(R.id.tv_distance,item.getJuli());
        holder.setText(R.id.tv_parking_pay_type,item.getPayway());
        holder.addOnClickListener(R.id.image_navigation);
    }

}
